From f781b334c085364c1c50e75586982af0dc4dabee Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 6 Sep 2002 19:40:44 +0000 Subject: [PATCH] Let mapsend support -s so that the waypoints in my map and in my receiver match. Wooo Hooo! --- mapsend.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mapsend.c b/mapsend.c index 3e6267b19..d5d9d0d9c 100644 --- a/mapsend.c +++ b/mapsend.c @@ -244,11 +244,13 @@ mapsend_waypt_pr(waypoint *waypointp) double falt; double flong; double flat; -static int cnt = 0; + static int cnt = 0; + const char *sn = global_opts.synthesize_shortnames ? + mkshort(waypointp->description) : waypointp->shortname; - c = strlen(waypointp->shortname); + c = strlen(sn); fwrite(&c, 1, 1, mapsend_file_out); - fwrite(waypointp->shortname, c, 1, mapsend_file_out); + fwrite(sn, c, 1, mapsend_file_out); c = strlen(waypointp->description); fwrite(&c, 1, 1, mapsend_file_out); -- 2.30.2